﻿using AutoMapper;
using Blog.Repository;
using Blog.Service.Api.Output;

namespace Blog.Service.Api
{
    /// <summary>
    /// 映射配置
    /// </summary>
    public class MapConfig : Profile
    {
        public MapConfig()
        {
            //CreateMap<ApiAddInput, ApiEntity>();
            //CreateMap<ApiUpdateInput, ApiEntity>();
            //CreateMap<ApiSyncDto, ApiEntity>();

            CreateMap<ApiEntity, ApiListOutput>();
            CreateMap<ApiModel, ApiEntity>();
            CreateMap<ApiEntity, ApiModel>();
        }
    }
}